package com.work.mb;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.logging.Logger;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import com.work.facade.ReleaseFacade;
import com.work.model.Codereview;
import com.work.model.User;

@ManagedBean(name="releaseMB")
@SessionScoped
public class ReleasesMB implements Serializable{

	private static final long serialVersionUID = -9020202255435629357L;
	private final static Logger LOG = Logger.getLogger(ReleasesMB.class.getName()); 
	
	@EJB
	private ReleaseFacade releaseFacade;
	
	private Date codeFreeze;
	private Date creationDate;
	private int releaseNb;
	private String releasePhase;
	private Date updatedDate;
	private String year;
	private List<Codereview> codeReviews;
	private User userCreatedBy;
	private User userUpdatedBy;
	
	/**
	 * @return the codeFreeze
	 */
	public Date getCodeFreeze() {
		return codeFreeze;
	}
	/**
	 * @param codeFreeze the codeFreeze to set
	 */
	public void setCodeFreeze(Date codeFreeze) {
		this.codeFreeze = codeFreeze;
	}
	/**
	 * @return the creationDate
	 */
	public Date getCreationDate() {
		return creationDate;
	}
	/**
	 * @param creationDate the creationDate to set
	 */
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	/**
	 * @return the releaseNb
	 */
	public int getReleaseNb() {
		return releaseNb;
	}
	/**
	 * @param releaseNb the releaseNb to set
	 */
	public void setReleaseNb(int releaseNb) {
		this.releaseNb = releaseNb;
	}
	/**
	 * @return the releasePhase
	 */
	public String getReleasePhase() {
		return releasePhase;
	}
	/**
	 * @param releasePhase the releasePhase to set
	 */
	public void setReleasePhase(String releasePhase) {
		this.releasePhase = releasePhase;
	}
	/**
	 * @return the updatedDate
	 */
	public Date getUpdatedDate() {
		return updatedDate;
	}
	/**
	 * @param updatedDate the updatedDate to set
	 */
	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}
	/**
	 * @return the year
	 */
	public String getYear() {
		return year;
	}
	/**
	 * @param year the year to set
	 */
	public void setYear(String year) {
		this.year = year;
	}
	/**
	 * @return the codeReviews
	 */
	public List<Codereview> getCodeReviews() {
		return codeReviews;
	}
	/**
	 * @param codeReviews the codeReviews to set
	 */
	public void setCodeReviews(List<Codereview> codeReviews) {
		this.codeReviews = codeReviews;
	}
	/**
	 * @return the userCreatedBy
	 */
	public User getUserCreatedBy() {
		return userCreatedBy;
	}
	/**
	 * @param userCreatedBy the userCreatedBy to set
	 */
	public void setUserCreatedBy(User userCreatedBy) {
		this.userCreatedBy = userCreatedBy;
	}
	/**
	 * @return the userUpdatedBy
	 */
	public User getUserUpdatedBy() {
		return userUpdatedBy;
	}
	/**
	 * @param userUpdatedBy the userUpdatedBy to set
	 */
	public void setUserUpdatedBy(User userUpdatedBy) {
		this.userUpdatedBy = userUpdatedBy;
	}

}
